<?php
	$imgs = array($this->baseUrl()."/public/common/img/game1.jpg",$this->baseUrl()."/public/common/img/game2.jpg",$this->baseUrl()."/public/common/img/game3.jpg");
 	echo $this->partial('slider.phtml',array("images"=>$this->images));
 	echo $this->partial('menu.phtml',array("active"=>1));
 ?>
 	<br class="clear" >
 	<div id = "gameDetail">
 		<div id="head_detail">
 			<div class="left">
 				<img alt="" src="<?php echo $this->baseUrl()."/".$this->game['icon'];?>" class="icon" >
 			</div>
 			<p class ="left">
 				<b class="game_name"><?php echo $this->game['name'];?></b><br>
 				<span class = "left">Thể loại : <?php echo $this->game['category_name']?><br>
 				Số lượt tải : <span class ="download_number"><?php echo $this->game['download'];?></span><br>
 				Dung lượng : <?php echo $this->install_file_size;?>Mb
 				</span>
 				
 			</p>
 			
 			
 			<div class="clear" id ="btns">
 				<a id = "like" href ="#" onclick = "return functionLike(this,<?php echo $this->game['game_id']?>)">
 				<span>
 				<img src="<?php echo $this->baseUrl()?>/public/common/img/like.jpg">
 				 	Like(<span class="number"><?php echo $this->game['like']?></span>)
 				 </span>
 				 </a>
 				
 				<a id = "share" onclick ="functionShare(this, <?php echo $this->game['game_id']?>)"  href="http://www.facebook.com/sharer.php?u=<?php echo $this->url?>" target="_blank">
	 				<span>
		 				<img src="<?php echo $this->baseUrl()?>/public/common/img/share.jpg">
		 				 Share(<span class="number"><?php echo $this->game['share']?></span>)
	 				 </span>
 				</a>
 				
 				<a class="download_button"  href="<?php echo $this->baseUrl()?>/mobile/download/index/productId/<?php echo $this->game['game_id']?>">
				<img src="<?php echo $this->baseUrl()?>/public/common/img/btn_download.jpg">
				</a>
 			</div>
 			<hr class="clear">
 		</div>

 		<div id ="game_info">
 			<p>
 			Giới thiệu : <br><br>
 			<?php echo nl2br($this->game['detail']);?>
 			</p>
 		</div>
 	</div>
 <?php
 	$i =1;
 	foreach ($this->gameLists as $key => $game){
 		echo $this->partial('product_list_item.phtml',array('product' => $game,'key' =>$key));
 		if($i++>=3)
 			break;
 	}
 ?>